home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-21 | 1.1 KB | 47 lines | [TEXT/ttxt] |
- --<<<
- -- Filename:
- -- graphble.sx
-
- -- Other Files Required:
- -- axisprop.sx, traveler.sx
-
- -- Purpose:
- -- Defines objects which can be displayed by the Grapher.
-
- -- Specialized Classes:
- -- Graphable
-
- -- Author:
- -- Ray Davis, based on work by Dionn Stewart, Steve Gano, and Steve Mayer
-
- in module Autofinder
-
- if (not isDefined Traveler) do fileIn theScriptDir name:"traveler.sx"
-
- class Graphable (TwoDShape, Traveler, Dragger)
- class variables
- axisProperties:(#()) -- keyed list of AxisProperties for object
- instance variables
- tackPoint -- graphing coordinates within object's shape
- end
-
- method init self {class Graphable} #rest args #key \
- thumbnail: tackPoint:(undefined) ->
- (
- apply nextMethod self boundary:thumbnail fill:blackBrush args
- makePurgeable thumbnail
-
- if tackPoint <> undefined then
- self.tackPoint := tackPoint
- else
- self.tackPoint := new Point x:(self.width/2) y:(self.height/2)
-
- self.dropAction := (adata dragger offset ->
- if dragger.presentedBy <> undefined do
- graphObject dragger.presentedBy dragger
- )
- )
-
- "Compiled graphable.sx"
- -->>>
-